<!DOCTYPE html>
<html lang="en" style="font-size: 30px;">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        .box{
            box-sizing: border-box;
            width: 100vw;
            height: 100vh;
            border: 1px solid red;
            display: flex;
            font-size: 20px;
            
        }
        .inner{
            width: 10rem;
            height: 100px;
            margin:  auto;
            border: 1px solid red;
            text-indent: 2em;
        }
    </style>
</head>
<body>
    <!-- 1vw = 1/100视口的宽度 -->
    <div class="box">
        <div class="inner">
            为了在react中实现动画效果,其实我们有很多的选择,比如:react-transition-group,react-motion,Animated等等。但是,由于react-transition-group给元素添加的ent...
        </div>
    </div>
</body>
</html>